import { MiddlewareConsumer, Module, NestMiddleware, NestModule } from '@nestjs/common';
import { ListService } from './list.service';
import { ListController } from './list.controller';
import { LoggerMiddleware } from '../logger/logger.middleware'

@Module({
  controllers: [ListController],
  providers: [ListService],
})
export class ListModule implements NestModule{
  configure(consumer: MiddlewareConsumer) {
      consumer.apply(LoggerMiddleware).forRoutes('list')
  }
}
